﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GisWeb
{
    public partial class ChildWindow1 : FloatableWindow
    {
        public ChildWindow1()
        {
            InitializeComponent();
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            SelectedIndex = (compareindex.SelectedItem as TextBlock).Text;
            SelectedYear = (year.SelectedItem as TextBlock).Text;
            SelectedChart = (chart.SelectedItem as TextBlock).Text;
            this.DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        //存储选择的行业
        public string SelectedIndex
        {
            get;
            set;
        }

        //存储选择的展现形式
        public string SelectedChart
        {
            get;
            set;
        }

        //存储选择的展现时间
        public string SelectedYear
        {
            get;
            set;
        }


    }
}

